package cn.yu.dream.common.mybatis.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 缓存抽象实体
 *
 * @author lengleng
 * @date 2021/8/9
 */
@Getter
@Setter
public abstract class CacheBaseEntity implements Serializable {

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@Schema(description = "主键id")
	private Long id;

	public abstract String cacheKey();

}
